import request from '@/utils/request'

// 新增
export const addDepartments = (data) => request.post('/company/department', data)

// 查询企业的部门列表
export const getDepartmentsList = () => request.get('/company/department')

// 修改部门详情
export const editDepartmentsDetail = (data) => request.put(`/company/department/${data.id}`, data)

// 删除部门
export const delDepartments = (id) => request.delete(`/company/department/${id}`)

// 查询部门详情
export const getDepartmentsDetail = (id) => request.get(`/company/department/${id}`)
